package com.dys.pojo;

import java.util.List;

/**
 * @className: com.dys.pojo.Dept
 * @description: com.dys.pojo
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/11/07 22:22
 */
public class Dept {
    private Integer deptid;
    private String dname;
    private String ddesc;
    private List<Emp> emps;

    public Dept() {
    }

    public Dept(Integer deptid, String dname, String ddesc) {
        this.deptid = deptid;
        this.dname = dname;
        this.ddesc = ddesc;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getDdesc() {
        return ddesc;
    }

    public void setDdesc(String ddesc) {
        this.ddesc = ddesc;
    }

    public List<Emp> getEmps() {
        return emps;
    }

    public void setEmps(List<Emp> emps) {
        this.emps = emps;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "deptid=" + deptid +
                ", dname='" + dname + '\'' +
                ", ddesc='" + ddesc + '\'' +
                ", emps=" + emps +
                '}';
    }
}
